package com.yf.exam.modules.trainingarchives.worktype.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yf.exam.modules.trainingarchives.worktype.dto.resp.OrgWorkTypeRespDTO;
import com.yf.exam.modules.trainingarchives.worktype.entity.OrgWorkType;
import com.yf.exam.modules.trainingarchives.worktype.mapper.OrgWorkTypeMapper;
import com.yf.exam.modules.trainingarchives.worktype.service.OrgWorkTypeService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author gengjiaxuan
* @description 针对表【org_work_type(工种表)】的数据库操作Service实现
* @createDate 2025-01-15 22:09:49
*/
@Service
public class OrgWorkTypeServiceImpl extends ServiceImpl<OrgWorkTypeMapper, OrgWorkType>
    implements OrgWorkTypeService {

    @Override
    public List<OrgWorkTypeRespDTO> getlist() {
        List<OrgWorkType> list = this.list();
        return BeanUtil.copyToList(list, OrgWorkTypeRespDTO.class);
    }
}




